/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jaotwinker;
import org.w3c.dom.Document;
import org.w3c.dom.Element;

/**
 *
 * @author Grayson
 */
public class Skill {
    public String name;
    public String value;
    
    public Element getXML(Document dom) {
        Element e = dom.createElement("Skill");
        e.setAttribute("Name", name);
        e.setAttribute("Value", value);
        return e;
    }
    
    public String getName(String val) {
        int valnum = Integer.parseInt(val);
        switch(valnum) {
            case 93: return "ChemicalAC";
            case 95: return "ColdAC";
            case 92: return "EnergyAC";
            case 97: return "FireAC";
            case 91: return "MeleeAC";
            case 96: return "PoisonAC";
            case 90: return "ProjectileAC";
            case 94: return "RadiationAC";
            case 137: return "Adventuring";
            case 156: return "RunSpeed";
            case 124: return "Treatment";
            case 123: return "FirstAid";
            case 154: return "DodgeRanged";
            case 153: return "DuckExp";
            case 155: return "EvadeClsC";
            case 45: return "BeltSlots";
            case 181: return "MaxNCU";
            case 318: return "NPCostModifier";
            case 360: return "Scale";
            case 1: return "MaxHealth";
            case 221: return "MaxNanoEnergy";
            case 277: return "AddAllDef";
            case 276: return "AddAllOff";
            case 319: return "XPModifier";
            case 278: return "ProjectileDamageModifier";
            case 281: return "ChemicalDamageModifier";
            case 282: return "RadiationDamageModifier";
            case 317: return "PoisonDamageModifier";
            case 279: return "MeleeDamageModifier";
            case 280: return "EnergyDamageModifier";
            case 311: return "ColdDamageModifier";
            case 316: return "FireDamageModifier";
            case 136: return "Perception";
            case 164: return "Concealment";
            case 226: return "ShieldProjectileAC";
            case 229: return "ShieldChemicalAC";
            case 230: return "ShieldRadiationAC";
            case 234: return "ShieldPoisonAC";
            case 232: return "ShieldNanoAC";
            case 227: return "ShieldMeleeAC";
            case 228: return "ShieldEnergyAC";
            case 231: return "ShieldColdAC";
            case 233: return "ShieldFireAC";
            case 475: return "MaxReflectedProjectileDmg";
            case 205: return "ReflectProjectileAC";
            case 208: return "ReflectChemicalAC";
            case 216: return "ReflectRadiationAC";
            case 225: return "ReflectPoisonAC";
            case 478: return "MaxReflectedChemicalDmg";
            case 479: return "MaxReflectedRadiationDmg";
            case 483: return "MaxReflectedPoisonDmg";
            case 481: return "MaxReflectedNanoDmg";
            case 218: return "ReflectNanoAC";
            case 476: return "MaxReflectedMeleeDmg";
            case 206: return "ReflectMeleeAC";
            case 477: return "MaxReflectedEnergyDmg";
            case 207: return "ReflectEnergyAC";
            case 482: return "MaxReflectedFireDmg";
            case 480: return "MaxReflectedColdDmg";
            case 219: return "ReflectFireAC";
            case 217: return "ReflectColdAC";
            case 380: return "WeaponRange";
            case 118: return "MeleeInit.";
            case 119: return "RangedInit.";
            case 120: return "PhysicalInit.";
            case 151: return "AimedShot";
            case 379: return "CriticalIncrease";
            case 383: return "InterruptModifier";
            case 381: return "NanoRange";
            case 149: return "NanoC.Init";
            case 138: return "Swimming";
            case 16: return "Strength";
            case 168: return "NanoResist";
            case 160: return "NanoProgramming";
            case 161: return "ComputerLiteracy";
            case 27: return "Health";
            case 343: return "HealDelta";
            case 364: return "NanoDelta";
            case 108: return "SharpObject";
            case 101: return "MultiMelee";
            case 113: return "Rifle";
            case 135: return "TrapDisarm";
            case 117: return "VehicleWater";
            case 139: return "VehicleAir";
            case 102: return "1hBlunt";
            case 107: return "2hBlunt";
            case 142: return "Brawl";
            case 104: return "MeleeEnergy";
            case 100: return "MartialArts";
            case 147: return "FastAttack";
            case 126: return "ElectricalEngineering";
            case 140: return "MapNavigation";
            case 141: return "Tutoring";
            case 109: return "Grenade";
            case 110: return "HeavyWeapons";
            case 122: return "SensoryImprovement";
            case 125: return "MechanicalEngineering";
            case 129: return "PsychologicalModification";
            case 133: return "RangedEnergy";
            case 157: return "QuantumFT";
            case 159: return "Pharmaceuticals";
            case 163: return "Chemistry";
            case 166: return "VehicleGround";
            case 19: return "Intelligence";
            case 111: return "Bow";
            case 112: return "Pistol";
            case 116: return "AssaultRifle";
            case 130: return "MaterialCreation";
            case 131: return "SpaceTime";
            case 134: return "MultiRanged";
            case 146: return "SneakAttack";
            case 158: return "WeaponSmithing";
            case 162: return "Psychology";
            case 121: return "BowSpecialAttack";
            case 127: return "MaterialMetamorphosis";
            case 128: return "BiologicalMetamorphosis";
            case 21: return "Psychic";
            case 132: return "NanoPool";
            case 144: return "Dimach";
            case 20: return "Sense";
            case 103: return "1hEdged";
            case 165: return "BreakingEntry";
            case 167: return "FullAuto";
            case 148: return "Burst";
            case 105: return "2hEdged";
            case 106: return "Piercing";
            case 114: return "MG/SMG";
            case 115: return "Shotgun";
            case 150: return "FlingShot";
            case 143: return "Riposte";
            case 145: return "Parry";
            case 152: return "BodyDevelopment";
            case 18: return "Stamina";
            case 17: return "Agility";
            case 51: return "AggDef";
            case 26: return "Energy";
            case 382: return "SkillLockModifier";
            case 391: return "CritialResistance";
            case 532: return "ShadowBreed";
            case 536: return "NanoDamageMultiplier";
            case 535: return "HealMultiplier";
            case 593: return "RegainXPPercentage";
            case 315: return "NanoDamageModifier";
            case 22: return "AMS";
            case 659: return "DamageToNano";
            default: return "Unknown: " + String.valueOf(value);
        }
    }
}
